package com.MasterDevelopers.MessageMaster;

public class Message {
	private long _id;
	private String _title;
	private String _body;
	private Address _addresses;
	
	public Message(){
		_addresses = null;
		_body = null;
		_id = -1;
	}
	
	public Message (long id, String title, String body, Address addresses){
		_id = id;
		_title = title;
		_body = body;
		_addresses = addresses;
	}
	
	public Message (long id, String title, String body, String address){
		_id = id;
		_title = title;
		_body = body;
		_addresses = new Address(address);
	}
	
	public long getId(){ return _id;}
	public String getTitle() { return _title;}
	public String getBody(){return _body;}
	public Address getAddresses() { return _addresses;}
	
	@Override 
	public String toString(){
		return getTitle();
	}
}
